package com.etc.test;

import java.util.List;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.etc.entity.Medicine;
import com.etc.entity.Outpatientservicetype;
import com.etc.service.MedicineService;
import com.etc.service.OutpatientservicetypeService;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:applicationContext.xml", "classpath:mybatis-config.xml" })
public class OutpatientservicetypeTestJUnit {

	@Autowired
	private OutpatientservicetypeService outpatientservicetypeService;
	
	
	/**
	 * 查询所有科室测试
	 */
	@Test
	public void selectOutpatientservicetype() {
		List<Outpatientservicetype> outpatientservicetype = outpatientservicetypeService.selectOutpatientservicetype();
		outpatientservicetype.forEach(System.out::println);
	}
	
	/**
	 * 查询科室数量
	 */
	@Test
	public void selectCount() {
		System.out.println(outpatientservicetypeService.selectCount());
	}
}
